package com.sugon.modules.analyse.model.vo;

import cn.hutool.core.collection.CollectionUtil;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 车间模具故障率统计VO
 *
 * @author YuXD
 * @since 2023-04-05
 */
@Data
public class MoldFaultRateStatVO implements Serializable {

    /**
     * 月份列表
     */
    private List<String> monthlyList;

    /**
     * 月度故障列表
     */
    private List<BigDecimal> faultRateList;

    public MoldFaultRateStatVO() {
        this.faultRateList = CollectionUtil.newArrayList();
    }

    public boolean addMoldMonthlyFaultRate(BigDecimal monthlyFaultRate) {
        return this.faultRateList.add(monthlyFaultRate);
    }

}
